package sindconsole.misc.service;

import sindconsole.misc.bean.Dict;
import sindconsole.misc.bean.DictItem;

import java.util.List;

public interface DictService {

    List<Dict> findAllDicts();
    int createDict(Dict dict);
    int updateDict(Dict dict);
    int deleteDict(long id);

    List<DictItem> findDictItems(long dictId);
    List<DictItem> treeDictItems(long dictId);
    int createDictItem(DictItem dictItem);
    int updateDictItem(DictItem dictItem);
    int deleteDictItem(long dictId, long id);
    int relinkDictItems(long dictId, Long newParentId, long id);

    List<String>  searchPathByDictItemId(long dictItemId);
    DictItem searchDictItemByPath(List<String> path);

}
